#-------------------------------------------------
#
# Project created by QtCreator 2015-01-13T15:00:22
#
#-------------------------------------------------

QT       += core gui
QT       += network
QT       += androidextras
QT       += multimedia
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android

INCLUDEPATH += $$PWD/ffmpeg/include
DEPENDPATH += $$PWD/ffmpeg/include

LIBS += -L$$PWD/ffmpeg/lib/ -lavcodec-55
LIBS += -L$$PWD/ffmpeg/lib/ -lavutil-52
LIBS += -L$$PWD/ffmpeg/lib/ -lswscale-2
LIBS += -L$$PWD/ffmpeg/lib/ -lavformat-55
LIBS += -L$$PWD/ffmpeg/lib/ -lswresample-0
LIBS += -Lpthread
LIBS +=-lOpenSLES

TARGET = NetworkPhone
TEMPLATE = app


SOURCES += main.cpp\
        mainwindow.cpp \
    TcpPackBuf/TcpPackBuf.cpp \
    Task_Base/EventImpl.cpp \
    Task_Base/Task_Base.cpp \
    StreamBuf/StreamBuf.cpp \
    ClientImpl/Recv_Task.cpp \
    ClientImpl/Return_Task.cpp \
    ClientImpl/Send_Task.cpp \
    ClientImpl/TcpClient.cpp \
    qdebug2logcat.cpp \
    audiodecodetask.cpp \
    audioVoencodetask.cpp \
    audioinfoinput.cpp \
    audioinfooutput.cpp \
    networkimpl.cpp \
    opensl_engine.cpp \
    cmnMemory.c

HEADERS  += mainwindow.h \
    libavinclude.h \
    TcpPackBuf/TcpPackBuf.h \
    Task_Base/CriticalSection.h \
    Task_Base/EventImpl.h \
    Task_Base/Task_Base.h \
    StreamBuf/StreamBuf.h \
    ClientImpl/Receive_handler.h \
    ClientImpl/Recv_Task.h \
    ClientImpl/Return_Task.h \
    ClientImpl/Send_Task.h \
    ClientImpl/TcpClient.h \
    qdebug2logcat.h \
    audiodecodetask.h \
    audioVoencodetask.h \
    audioinfoinput.h \
    audioinfooutput.h \
    networkimpl.h \
    opensl_engine.h \
    cmnMemory.h

FORMS    += mainwindow.ui

CONFIG += mobility
MOBILITY = 

contains(ANDROID_TARGET_ARCH,armeabi) {
    ANDROID_EXTRA_LIBS = $$PWD/ffmpeg/lib/libavcodec-55.so $$PWD/ffmpeg/lib/libavutil-52.so $$PWD/ffmpeg/lib/libswscale-2.so $$PWD/ffmpeg/lib/libswresample-0.so $$PWD/ffmpeg/lib/libavformat-55.so $$PWD/vo-aacenc/lib/libvo-aacenc.so
}
contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
    ANDROID_EXTRA_LIBS = $$PWD/ffmpeg/lib/libavcodec-55.so $$PWD/ffmpeg/lib/libavutil-52.so $$PWD/ffmpeg/lib/libswscale-2.so $$PWD/ffmpeg/lib/libswresample-0.so $$PWD/ffmpeg/lib/libavformat-55.so $$PWD/vo-aacenc/lib/libvo-aacenc.so
}


INCLUDEPATH += $$PWD/faaclib/include
DEPENDPATH += $$PWD/faaclib/include

INCLUDEPATH += $$PWD/vo-aacenc/include
DEPENDPATH += $$PWD/vo-aacenc/include
